//
// Created by jsjxsy on 2022/8/18.
//
#include <iostream>
using namespace std;
class Base {
};

class Derived : public Base {
};
int main() {
  const int pop2 = 2000;
  int *pt = const_cast<int *>(&pop2);
  if (pt) {
    cout << "pt != null" << endl;
  }
  *pt += 20;
  cout << pop2 << endl;

  //dynamic_cast 只能对类转化
  //int *pt2 = dynamic_cast<int *>(&pop2);
  return 0;
}
